package com.qiyu.model.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 公共的分页请求
 *
 * @Author: tiancheng
 * @date: 2020/8/3 10:15
 */
@ApiModel(value = "分页请求", description = "公共的分页请求")
@Data
public class PageRequest {
    
    /**
     * 分页大小,默认10
     */
    @ApiModelProperty(value = "分页大小")
    @NotNull(message = "分页大小不能为空")
    private Integer pageSize = 10;
    
    /**
     * 当前分页数，默认1，代表第一页
     */
    @ApiModelProperty(value = "当前分页数据")
    @NotNull(message = "分页数不能为空")
    private Integer pageIndex = 1;
}
